<script setup>
import { useCartStore } from '@/stores/cart.js'

defineOptions({
  name: 'ShopCart'
})
const cartStore = useCartStore()
cartStore.setCartList()
</script>

<template>
  <div>
    <cartEmpty v-if="!cartStore.cartList.length"></cartEmpty>

    <cartList v-else></cartList>
  </div>
</template>

<style scoped lang="scss">
.bar {
  position: fixed;
  bottom: 55px;
}
</style>
